package com.byedu.domain.focus.vo;

import com.byedu.domain.focus.FocusLogDO;

/**
 * Created by Luo on 2017-09-05.
 */
public class FocusLogVO {
    /*信息id*/
    private String id;
    /*员工userId*/
    private FocusUserVO user;
    //操作指令
    private String operate;
    //操作信息
    private String info;
    /*操作时间*/
    private String optime;


    public String getOptime() {
        return optime;
    }

    public void setOptime(String optime) {
        this.optime = optime;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getOperate() {
        return operate;
    }

    public void setOperate(String operate) {
        this.operate = operate;
    }


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public FocusUserVO getUser() {
        return user;
    }

    public void setUser(FocusUserVO user) {
        this.user = user;
    }
    public FocusLogVO() {
    }
    public FocusLogVO(FocusLogDO focusLogDO, FocusUserVO focusUserVO) {
        if(focusUserVO !=null ) {
            this.user = focusUserVO;
        }
        if(focusLogDO !=null) {
            this.id = focusLogDO.getId();

            this.operate = focusLogDO.getOperate();
            this.info = focusLogDO.getInfo();
            this.optime = focusLogDO.getOptime();
        }
    }

    @Override
    public String toString() {
        return "FocusLogVO{" +
                "id='" + id + '\'' +
                ", user=" + user +
                ", operate='" + operate + '\'' +
                ", info='" + info + '\'' +
                ", optime='" + optime + '\'' +
                '}';
    }
}
